package com.dalin.demo.dao;

import com.dalin.demo.pojo.entity.Class;
import com.dalin.demo.pojo.entity.Student;
import com.dalin.demo.pojo.entity.StudentClass;
import com.dalin.demo.pojo.entity.StudentCourse;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ClassMapper {
    List<Class> listClassByParams(Map<String, Object> params);
    void insertClass(Class class1);
    void updateClass(Class class1);
    void deleteClasses(Integer id);
    void batchInsert(List<StudentClass> studentClasses);
    List<StudentClass> findStudentsByClassId(Long classId);
    void deleteStudentById(Integer id);
}